﻿using System;
using System.Collections.Generic;

namespace AMS.DataAccess.Sys.BO
{
    [DBTable("TS_Function")]
    public class FunctionInfo
    {
        #region Database Column Fields
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBColumn("FunctionKey")]
        public string FunctionKey { get; set; }

        [DBColumn("FunctionName")]
        public string FunctionName { get; set; }

        [DBColumn("ModuleID")]
        public int ModuleID { get; set; }

        [DBColumn("SubToFunctionID", 0)]
        public int SubToFunctionID { get; set; }

        #endregion

        public ModuleInfo Module { get; set; }
        public List<RoleInfo> Roles { get; set; }
    }
}
